using System;
using System.ComponentModel;
using System.Data;
using System.Runtime.Serialization;

namespace MinCultura.Sipa.DataAccess.EntidadesArtes
{
	/// <summary>
	/// A custom serializable dataset containing 
	/// </summary>
	[Serializable()]
	[DesignerCategory("code")]


	/// <summary>Class for handling datasets</summary>  
		public class GrupoEdadData : DataTable
	{
		///
		/// Constants for table and fields mapping
		///
		public const string ART_GRUPO_EDAD_TABLE = "ART_GRUPO_EDAD";
		public const string GPE_ID_FIELD = "GPE_ID";
		public const string GPE_NOMBRE_FIELD = "GPE_NOMBRE";


		protected GrupoEdadData(SerializationInfo info, StreamingContext context)
		{
		}

		public GrupoEdadData()
		{
			BuildDataTables();
		}

		/// <summary>
		/// Creates the following datatables: Localidades
		/// </summary>
		private void BuildDataTables()
		{
			DataColumnCollection columns;
			this.TableName = ART_GRUPO_EDAD_TABLE;
			columns = this.Columns;
			columns.Add(GPE_ID_FIELD, typeof (Byte));
			columns.Add(GPE_NOMBRE_FIELD, typeof (String));
		}

		/// <summary>
		/// Add a new row to the table
		/// </summary>
		/// <param name="row">Dataset row
		public void addGrupo(DataRow row)
		{
			this.Rows.Add(row);
		}
	}

}